//
// Created by tonystark on 16/4/14.
// Copyright (c) 2016 sewm. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface UpLoadData : NSObject


//test.txt
@property (nonatomic,retain)NSString * filePath; //文件本地地址
@property (nonatomic,retain)NSData * data; //文件2进制数据  必传
@property (nonatomic,retain)NSString * fileName; //文件名  必传
@property (nonatomic,retain)NSString * format; //文件类型 txt doc ppt  自动设置
@property (nonatomic,retain)NSString * mimeType; //文件上传contentType 自动设置
@property (nonatomic,retain)NSString * fileURL; //文件上传成功后的网络所在位置

//上传本文件
- (void)upLoadWithCompletion:(void(^)(BOOL success,NSString * errorMessage))completion;

@end